site.getConnectionState()

Availability 3.0
Description Gets the current connection state.
Arguments None.
Returns A Boolean value indicating whether the remote site is connected.
Enabler site.canConnect()